# $Id: Makefile 60 2007-03-25 09:34:25Z aldleonm $

TOPDIR=..

include $(TOPDIR)/conf.mk

encdb: $(srcfiles) $(headerfiles)
	$(CC) -o encdb $(CC_OPTS) $(CC_LIBS) $(CC_INCL) $(srcfiles)

install: encdb
	$(STRIP) encdb
	$(MKDIR) -p 755 $(DESTDIR)$(install_root)/bin 
	$(INSTALL) -m 755 -g root -o root encdb $(DESTDIR)$(install_root)/bin
	$(MKDIR) -p 755 $(DESTDIR)$(man_dir)/man1 
	$(MKDIR) -p 755 $(DESTDIR)$(man_dir)/es/man1
	$(INSTALL) -m 644 -g root -o root ../man/man1/encdb.1 $(DESTDIR)$(man_dir)/man1
	$(INSTALL) -m 644 -g root -o root ../man/es/man1/encdb.1 $(DESTDIR)$(man_dir)/es/man1/

clean:
	rm -f encdb *~ .sw*
